package dom4j;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import java.io.File;

public class Dom4jStudy {

    public static void main(String[] args) {
        SAXReader reader = new SAXReader();
        try {
            Document doc = reader.read(new File("F:\\IDEACodeOFJavaEE\\XMLStudy\\src\\dom4j\\goods.xml"));
            Element root = doc.getRootElement();
            System.out.println(root.getName());


        } catch (DocumentException e) {
            e.printStackTrace();
        }
    }
}
